-- GENERATED SPELL FOR [Murkgill Oracle] --


function spell0_4459(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_4459', 3000, 1)
end

function spell1_4459(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4459', 3000, 1)
end

function Sorts_4459(pUnit, Event)
local choix_sorts_4459 = math.random(0, 1)
if choix_sorts_4459 == 0 then
pUnit:RegisterEvent('spell0_4459', 1, 1)
end
if choix_sorts_4459 == 1 then
pUnit:RegisterEvent('spell1_4459', 1, 1)
end
end

function mob4459_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4459', math.random(1500, 3000), 1)
end

function mob4459_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4459_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4459_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4459, 1, 'mob4459_Action')
RegisterUnitEvent(4459, 2, 'mob4459_Leave')
RegisterUnitEvent(4459, 3, 'mob4459_Kill')
RegisterUnitEvent(4459, 4, 'mob4459_Die')
